package com.dys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @className: com.dys.controller.FirstController
 * @description: com.dys.controller
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/10/23 21:31
 */
@Controller
public class FirstController {

    @RequestMapping("/firstController.do")
    public String firstController() {
        System.out.println("这是第1个Controller控制器......");
        // 配置视图解析器后这个地方需要变化
        return "first.jsp";
    }

    @RequestMapping("/secondController.do")
    public String secondController() {
        System.out.println("这是第2个Controller控制器......");
        // 配置视图解析器后这个地方需要变化
        return "second.jsp";
    }
}
